import request from '@/utils/request'
/**
 * 获取验证码
 * @returns 
 */
export const getCaptchaImage = () => {
  return request({
    url: '/captchaImage',
    method: 'get',
  })
}
/**
 * 登录
 * @returns 
 */
 export const login = (data:any) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
/**
 * 注册
 * @param data 
 * @returns 
 */
export const register = (data:any) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}
